package com.wulis.provider.basic.model.dto;

import java.util.List;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author WuliBao
 * @date 2020-04-23
 */
@Data
@ApiModel(description = "新增用户DTO")
public class InsertUserDto {
    
    @NotBlank
    @Size(min = 6, max = 20)
    @ApiModelProperty(value = "账号")
    private String account;
    
    @NotBlank
    @Size(min = 6, max = 20)
    @ApiModelProperty(value = "密码")
    private String password;
    
    @NotBlank
    @ApiModelProperty(value = "用户名称")
    private String userName;
    
    @NotBlank
    @Size(min = 8, max = 20)
    @ApiModelProperty(value = "手机号码")
    private String phoneNumber;
    
    @ApiModelProperty(value = "部门ID")
    private Long departmentId;
    
    @ApiModelProperty(value = "职位ID")
    private Long positionId;
    
    @ApiModelProperty(value = "邮箱")
    private String mail;
    
    @ApiModelProperty(value = "性别：0男 1女")
    private Integer sex;
    
    @ApiModelProperty(value = "备注")
    private String remark;
    
    @NotNull
    @ApiModelProperty(value = "启用状态：0关闭 1启用")
    private Integer enable;
    
    @NotNull
    @ApiModelProperty(value = "角色IDS")
    private List<Long> roleIds;
}
